<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initFront()
	{
		$front = $this->bootstrap('frontController')->getResource('frontController');
		$front->setControllerDirectory(APPLICATION_PATH . '/controllers', 'default');

		return $front;
	}

	protected function _initLoader()
	{
		$autoloader = Zend_Loader_Autoloader::getInstance();
		$autoloader->setFallbackAutoloader(true);

		return $autoloader;
	}

	protected function _initMvc()
	{
		$layout = Zend_Layout::startMvc(array(
			'layout' => 'main',
			'layoutPath' => APPLICATION_PATH . '/views/layout/'
		));

		return $layout;
	}
}